<html>
<head>
  <link rel='stylesheet' href="../jsGUIGuy/guiguy.css" type='text/css'>
  <link rel='stylesheet' href="../site/tutorials/styles_blog.css" type='text/css'>
  <script type="text/javascript" src="../bibliotheques/jquery.js"></script>
  <script type="text/javascript" src="../bibliotheques/jquery-ui-1.7.2.dragdrop.min.js"></script>
  <script type="text/javascript" src="../bibliotheques/firebug/firebugx.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Misc.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Settings.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/ServerInterface.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/User.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/PatternMapping.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIAttributes.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUI.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIList.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIEvents.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIEventsOld.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIApi.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Init.js"></script>
  <script type="text/javascript">
    function DisplayMessage(text) {alert(text);}
  </script>

</head>
<body>
    <!-- http://dstest.ohmydata.org/web/fa_dev.php/generic_objects -->
    <!-- http://localhost:90/sources_sf_taf/web/fa_dev.php/generic_objects -->
    <!-- http://localhost:90/backend/datasource/datasource.php -->
    <div id="blogContainer" class="load_on_start" dataObject="BlogEntry" defaultView="ListView" datasource="http://www.lothore.com/datasource/datasource.php5?">
      <div>
        <a class="button" href="javascript:void();" onClick="this.blur();"><span onClick="GG.events.insertNew(this,'form')"> -New entry- </span></a>
        <a class="button" href="javascript:void();" onClick="this.blur();"><span onClick="GG.events.refreshList(this)"> -Refresh- </span></a>
      </div>
      
      <div class="groupPatterns">
        <div class="blog_entry" id="pattern_BlogEntry_form" style="display:none;">
          <form>
            Title : <input type="text" class="blog_title title" name="title" dataType="Text"><br>
            Date : <input type="text" class="post_date date" name="date" dataType="Text"><br>
            Content : <input type="text" class="entry_content content" name="content" dataType="Text"><br>
            Published by : <input type="text" class="poster" name="poster" dataType="Text"><br>
            <a href="javascript:void();" onclick="GG.events.applyEdit(this,function(){GG.events.switchToView(this,'ListView')})"> -Save- </a>
            <a href="javascript:void();" onclick="GG.events.switchToView(this,'ListView')"> -Back to list- </a>
          <form>
        </div>      
        
        <div class="blog_entry" id="pattern_BlogEntry_ListView" style="display:none;">
          <h2 class="blog_title title"></h2><h3 class="order_rank"></h3>
          <p class="post_date date"></p>
          <p class="signature_list">Published by : <span class="poster"></span></p>
          <a href="javascript:void();" onclick="GG.events.switchToView(this,'DetailedView')"> -Read it- </a>
          <a href="javascript:void();" onclick="GG.events.switchToView(this,'form')"> -Edit- </a>
          <a href="javascript:void();" onclick="GG.events.refreshList(this)"> -Refresh- </a>
        </div>
        
        <div class="blog_entry" id="pattern_BlogEntry_DetailedView" style="display:none;">
          <h2 class="blog_title title"></h2>
          <p class="post_date date"></p>
          <p class="entry_content content"></p>
          <p class="signature">Published by : <span class="poster"></span></p>
          <a href="javascript:void();" onclick="GG.events.switchToView(this,'ListView')"> -Back to list- </a>
          <a href="javascript:void();" onClick="GG.events.insertNew(this,'form','first','Comment')">-New comment-</a>
          <div class="load_on_parent" dataObject="Comment" defaultView="ListView" style="margin-left:50px;" datasource="http://localhost:90/backend/datasource/datasource.php?">
            <div class="groupPatterns">
              <div class="blog_comment" id="pattern_Comment_form" style="display:none;">
                <form class="dragpoint">
                  Title : <input type="text" class="comment_title title" name="title" dataType="Text"><br>
                  Content : <input type="text" class="comment_content content" name="content" dataType="Text"><br>
                  Comment by : <input type="text" class="poster" name="poster" dataType="Text"><br>
                  <a href="javascript:void();" onclick="GG.events.applyEdit(this,function(){GG.events.switchToView(this,'ListView')})"> -Save- </a>
                  <a href="javascript:void();" onclick="GG.events.switchToView(this,'ListView')"> -Back to list- </a>
                <form>
              </div>      
              
              <div class="blog_comment" id="pattern_Comment_ListView" style="display:none;">
                <h2 class="comment_title title dragpoint"></h2><h3 class="order_rank"></h3>
                <p class="signature_list">Comment by : <span class="poster"></span></p>
                <a href="javascript:void();" onclick="GG.events.switchToView(this,'form')"> -Edit- </a>
              </div>  
            </div>
          </div>
        </div>   
      </div>
      
      
  	</div>    
</body>
</html>